package com.tencent.angel.sona.ml.math2.utils

/**
  * @author xiongjun
  * @date 2019/12/13 15:16
  * @description
  * @reviewer
  */

import com.tencent.angel.ml.math2.vector.Vector


class CusLabeledData(var x: Vector, var y: Double, var attached: String) extends Serializable {
  def this(x: Vector, y: Double) {
    this(x, y, null.asInstanceOf[String])
  }

  def this() {
    this(null.asInstanceOf[Vector], 0.0D)
  }

  def getX: Vector = this.x

  def setX(x: Vector): Unit = {
    this.x = x
  }

  def getY: Double = this.y

  def setY(y: Double): Unit = {
    this.y = y
  }

  def attach(msg: String): Unit = {
    this.attached = msg
  }

  def getAttach: String = this.attached
}

